import java.util.regex.Matcher;
import java.util.regex.Pattern;


public class RegexMatcher {
	
	RegexMatcher() {
		
	}

	public String getRegexMatch(String regex, String input) {
		String group = "";
		Pattern pattern = Pattern.compile(regex);
		Matcher matcher = pattern.matcher(input);
		if (matcher.find())
		{
			group = matcher.group();
		}
		return group;
	}

}
